import { Base } from '../../utils/base.js';

class AddressElet extends Base {
  constructor() {
    super();
  }

  getUpdate(id, callBack) {
    var params = {
      url: 'getUpdate/' + id,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

  getUpdateAdd(data, callBack) {
    var params = {
      url: 'getUpdateAdd',
      type: 'post',
      data: data,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

}

export { AddressElet };